package com.tueye.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tueye.entity.user.User;

/**
 *  
 * @author yue
 * descript: the comment  for picture
 * change 2008/12/29
 * add a attribute topic_description 
 *  change 2009/1/2 
 * add a attribute topic_change 
 */
@Entity
@Table(name = "tueye_comment_info")
public class Comment extends BaseEntity {

	private static final long serialVersionUID = 2782045499169928331L;
	private String commentcontent;
	
    private String commentusername;
    
    private Pictures picture;
    
    private User user;

	public String getCommentcontent() {
		return commentcontent;
	}

	public void setCommentcontent(String commentcontent) {
		this.commentcontent = commentcontent;
	}

	public String getCommentusername() {
		return commentusername;
	}

	public void setCommentusername(String commentusername) {
		this.commentusername = commentusername;
	}
	@ManyToOne  
	public Pictures getPicture() {
		return picture;
	}

	public void setPicture(Pictures picture) {
		this.picture = picture;
	}
	
	@ManyToOne
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	 
    
	
	
	
	 
	 
}